package com.zq.im.activity;

import android.content.Intent;

import com.gyf.immersionbar.ImmersionBar;
import com.zq.im.BaseActivity;
import com.zq.im.LoginActivity;
import com.zq.im.R;
import com.zq.im.utils.SharePreferenceUtils;

import butterknife.OnClick;

public class SettingActivity extends BaseActivity {

    @Override
    protected int getLayoutId() {
        return R.layout.activity_setting;
    }

    @Override
    protected void initImmersionBar() {
        ImmersionBar.with(this)
                .titleBarMarginTop(R.id.toolbar)
                .barColor(R.color.default_white)
                .statusBarDarkFont(true)
                .init();
    }

    @OnClick(R.id.out)
    void out() {
        SharePreferenceUtils.putString("token", "");
        SharePreferenceUtils.putString("userId", "");

        startActivity(new Intent(this, LoginActivity.class));
        finish();
    }


}